package com.breeze.blockchain.bc.model;

import java.io.Serial;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * p2p通讯消息
 *
 * @author breeze
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message implements Serializable {

  @Serial private static final long serialVersionUID = 1L;

  /** 消息类型 */
  private int type;

  /** 消息内容 */
  private String data;

  public Message(int type) {
    this.type = type;
  }
}
